package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.mjh.zhujianju.model.party.BuildingExamTopicEO;
import com.mjh.zhujianju.vo.party.BuildingExamTopicVO;

import java.util.List;

/**
 * @author liuyang
 * @Description:
 * @date 2018/8/18 14:19
 */
public interface BuildingExamTopicService  extends BaseService<BuildingExamTopicEO> {

    /**
     * 根据课题id查询下面所有的试题
     * @param id
     * @return
     */
    List<BuildingExamTopicVO> queryBuildingExamTopicForWXList(Long id);

    /**
     * 根据试题id查询正确答案
     * @param examId
     * @return
     */
    List<BuildingExamTopicVO> selectTopicAnswers(Long examId);


    /**
     * 根据id查询全部
     * @param ids
     * @return
     */
    List<BuildingExamTopicEO> queryTopicByIds(List<Long> ids);

    /**
     * 查询考试结果
     * @param examId 课题id
     * @param userId 用户id
     * @return
     */
    List<BuildingExamTopicVO> queryExamResult(Long examId,Long userId);

    List<BuildingExamTopicEO> selectPagination(BuildingExamTopicEO buildingExamTopicEO);

    BuildingExamTopicEO selectTpoicInfo(Long id);

    List<BuildingExamTopicEO> findBuildingExamTopicByExamId(Long examId);

}
